package me.dan.alibabasdk.entity.trade.product;

import java.text.ParseException;
import java.util.Date;

import me.dan.alibabasdk.util.DateUtil;

/**
 * 商品详情返回结果
 * @author SRZ
 * @date 2020/09/04
 */
public class AlibabaProductGetSellerDetail {

    /**
     * 商品详细信息
     */
    private AlibabaOpenplatformProductModelProductInfo productInfo;
    /**
     * 产品业务的支持信息
     */
    private AlibabaOpenplatformProductModelProductBizGroupInfo[] bizGroupInfos;

    /**
     * 创建时间
     */
    private String createTime;
    /**
     * 最后修改时间
     */
    private String lastUpdateTime;
    /**
     * 过期时间
     */
    private String expireTime;
    /**
     * 审核通过时间
     */
    private String approvedTime;
    /**
     * 最后重发时间
     */
    private String lastRepostTime;
    /**
     * 返回错误信息
     */
    private String errMsg;

    public AlibabaOpenplatformProductModelProductInfo getProductInfo() {
        return productInfo;
    }

    public void setProductInfo(AlibabaOpenplatformProductModelProductInfo productInfo) {
        this.productInfo = productInfo;
    }

    public AlibabaOpenplatformProductModelProductBizGroupInfo[] getBizGroupInfos() {
        return bizGroupInfos;
    }

    public void setBizGroupInfos(AlibabaOpenplatformProductModelProductBizGroupInfo[] bizGroupInfos) {
        this.bizGroupInfos = bizGroupInfos;
    }

    public String getCreateTime() {
        return createTime;
    }

    public Date getCreateTimeDate() {
        try {
            return DateUtil.parse(createTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getLastUpdateTime() {
        return lastUpdateTime;
    }

    public Date getLastUpdateTimeDate() {
        try {
            return DateUtil.parse(lastUpdateTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setLastUpdateTime(String lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getExpireTime() {
        return expireTime;
    }

    public Date getExpireTimeDate() {
        try {
            return DateUtil.parse(expireTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setExpireTime(String expireTime) {
        this.expireTime = expireTime;
    }

    public String getApprovedTime() {
        return approvedTime;
    }

    public Date getApprovedTimeDate() {
        try {
            return DateUtil.parse(approvedTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setApprovedTime(String approvedTime) {
        this.approvedTime = approvedTime;
    }

    public String getLastRepostTime() {
        return lastRepostTime;
    }

    public Date getLastRepostTimeDate() {
        try {
            return DateUtil.parse(lastRepostTime);
        } catch (ParseException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return null;
    }
    public void setLastRepostTime(String lastRepostTime) {
        this.lastRepostTime = lastRepostTime;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

}
